package com.ruoyi.production.mapper.plug;

import java.util.List;
import com.ruoyi.common.annotation.PropertyInject;
import com.ruoyi.common.enums.InjectType;
import com.ruoyi.production.domain.plug.PlugApply;

/**
 * 穴盘申请Mapper接口
 *
 * @author ruoyi
 * @date 2021-07-11
 */
public interface PlugApplyMapper
{
    /**
     * 查询穴盘申请
     *
     * @param plugApplyId 穴盘申请ID
     * @return 穴盘申请
     */
    public PlugApply selectPlugApplyById(Long plugApplyId);

    /**
     * 查询穴盘申请列表
     *
     * @param plugApply 穴盘申请
     * @return 穴盘申请集合
     */
    public List<PlugApply> selectPlugApplyList(PlugApply plugApply);

    /**
     * 新增穴盘申请
     *
     * @param plugApply 穴盘申请
     * @return 结果
     */
    @PropertyInject(type = InjectType.Insert)
    public int insertPlugApply(PlugApply plugApply);

    /**
     * 修改穴盘申请
     *
     * @param plugApply 穴盘申请
     * @return 结果
     */
    @PropertyInject(type = InjectType.Update)
    public int updatePlugApply(PlugApply plugApply);

    /**
     * 删除穴盘申请
     *
     * @param plugApplyId 穴盘申请ID
     * @return 结果
     */
    public int deletePlugApplyById(Long plugApplyId);

    /**
     * 批量删除穴盘申请
     *
     * @param plugApplyIds 需要删除的数据ID
     * @return 结果
     */
    public int deletePlugApplyByIds(Long[] plugApplyIds);
}
